import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';

///author: create by SunJH
///时间: 2022/3/1 0001
///邮箱: 965989158@qq.com
///描述: lottie动画测试页面
///

class LottieTest extends StatelessWidget {
  const LottieTest({Key? key}) : super(key: key);
  static const List<String> assetsList = [
    "assets/lottie/lottie_test1.json",
    "assets/lottie/lottie_test2.json",
    "assets/lottie/lottie_test3.json",
    "assets/lottie/lottie_test4.json",
    "assets/lottie/qipan.json",
  ];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: createListIcon(),
    );
  }

  createListIcon() {
   return ListView(
      children: assetsList
          .map((e) => Container(
        child: Lottie.asset(e,
            height: 1334, width: 750, fit: BoxFit.fitWidth),
      ))
          .toList(),
    );
  }
}
